/**
 * 基础菜单 商品模块
 */
<template>
  <div>
    <!-- 面包屑导航 -->
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>商品档案</el-breadcrumb-item>
    </el-breadcrumb>

     <div>
  <div style="float: left"><ssk></ssk></div>
    <el-button type="text" style="position: relative;top: 16px;left:5px">高级搜素</el-button>
 <el-select v-model="select" slot="prepend" placeholder="请选择"  style="position: relative;top: 14px;left:5px">
      <el-option label="餐厅名" value="1"></el-option>
      <el-option label="订单号" value="2"></el-option>
      <el-option label="用户电话" value="3"></el-option>
    </el-select>
     <el-select v-model="select" slot="prepend" placeholder="请选择"  style="position: relative;top: 14px;left:5px">
      <el-option label="餐厅名" value="1"></el-option>
      <el-option label="订单号" value="2"></el-option>
      <el-option label="用户电话" value="3"></el-option>
    </el-select>
    <div style="float: right;position: relative;top: 16px"> <el-button type="primary" round @click="open">主要按钮</el-button></div>

  <el-table
    ref="multipleTable"
    :data="tableData"
    tooltip-effect="dark"
    style="width: 100%"
    @selection-change="handleSelectionChange">
    <el-table-column
      type="selection"
      width="55">
    </el-table-column>
    <el-table-column
      label="日期"
      width="120">
      <template slot-scope="scope">{{ scope.row.date }}</template>
    </el-table-column>
    <el-table-column
      prop="name"
      label="姓名"
      width="120">
    </el-table-column>
    <el-table-column
      prop="address"
      label="地址"
      show-overflow-tooltip>
    </el-table-column>
      <el-table-column
      prop="address"
      label="地址"
      show-overflow-tooltip>
    </el-table-column>
      <el-table-column
      prop="address"
      label="地址"
      show-overflow-tooltip>
    </el-table-column>
      <el-table-column
      prop="address"
      label="地址"
      show-overflow-tooltip>
    </el-table-column>
      <el-table-column
      prop="address"
      label="地址"
      show-overflow-tooltip>
    </el-table-column>
      <el-table-column
      prop="address"
      label="地址"
      show-overflow-tooltip>
    </el-table-column>
      <el-table-column
      prop="address"
      label="地址"
      show-overflow-tooltip>
    </el-table-column>
     <el-table-column
      fixed="right"
      label="操作"
      width="200">
      <template slot-scope="scope">
        <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
        <el-button type="text" size="small">编辑</el-button>
      </template>
    </el-table-column>
  </el-table>
  <div style="margin-top: 20px">
    <el-button @click="toggleSelection([tableData[1], tableData[2]])">切换第二、第三行的选中状态</el-button>
    <el-button @click="toggleSelection()">取消选择</el-button>
  </div>
</div>

  </div>
 
</template>

<script>
import ssk from './ssk';
export default {
     name: "goodsda",
        components: {
            ssk
            }, 
        methods: {
            handleClick(row) {
                console.log(row);
            },
            open() {
                this.$router.push("/goods/GoodsDATJ")
            } ,
             toggleSelection(rows) {
            if (rows) {
              rows.forEach(row => {
                this.$refs.multipleTable.toggleRowSelection(row);
              });
            } else {
              this.$refs.multipleTable.clearSelection();
            }
          },
            handleSelectionChange(val) {
              this.multipleSelection = val;
            }
            },

            data() {
            return {
                input: '',
                tableData: [{
                date: '2016-05-02',
                name: '王小虎',
                province: '上海',
                city: '普陀区',
                address: '上海市普陀区金沙江路 1518 弄',
                zip: 200333
                }, {
                date: '2016-05-04',
                name: '王小虎',
                province: '上海',
                city: '普陀区',
                address: '上海市普陀区金沙江路 1517 弄',
                zip: 200333
                }, {
                date: '2016-05-01',
                name: '王小虎',
                province: '上海',
                city: '普陀区',
                address: '上海市普陀区金沙江路 1519 弄',
                zip: 200333
                }, {
                date: '2016-05-03',
                name: '王小虎',
                province: '上海',
                city: '普陀区',
                address: '上海市普陀区金沙江路 1516 弄',
                zip: 200333
                }]
            }
            }
}

</script>

<style scoped>


</style>

 
